package org.groupg.project;

import com.beust.jcommander.IStringConverter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class ConfigListConverter implements IStringConverter<List<String>> {
    @Override
    public List<String> convert(String value) {
        return Arrays.stream(value.split(","))
                   .map(String::trim)
                   .collect(Collectors.toList());
    }
}